
// 模板对比柱状图
var modelBar = echarts.init(document.getElementById("modelBar"));

var modelOption={
    title:{
        text:"各模板对比"
    },
    legend: {},
    tooltip: {},
    dataset: {
        source: [
            ['周一', '2015', '2016', '2017'],
            ['周二', 43.3, 85.8, 93.7],
            ['周三', 83.1, 73.4, 55.1],
            ['周四', 86.4, 65.2, 82.5],
            ['周五', 72.4, 53.9, 39.1]
        ]
    },
    xAxis: {type: 'category'},
    yAxis: {},
    // Declare several bar series, each will be mapped
    // to a column of dataset.source by default.
    series: [
        {type: 'bar'},
        {type: 'bar'},
        {type: 'bar'}
    ]
}
modelBar.setOption(modelOption);